package com.dao.frontdest;

import com.bean.frontdesk.bo.*;
import com.bean.frontdesk.vo.OrdersVO;
import com.bean.pojo.GoodsType;
import com.bean.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User selectUserByLoginInBO(LoginInBO login);
    int insertBySignUpBO(SignUpBO signUpBO);
    List<String> selectNickName();
    User selectUserByNickname(String nickName);
    String selectPwdById(Integer id);
    int updatePwdByUpdatePwdBO(UpdatePwdBO updatePwdBO);
    int updateUserByUpdateUserBO(UpdateUserBO updateUserBO);
    String selectNickNameById(Integer id);
    int selectIdByNickName(String nickname);
    List<OrdersVO> selectMyOrders(@Param("state") Integer state,@Param("id") Integer id);
    int placeOrder(OrderBO.oredrs oredrs);
    int deleteOrdersByUpdateState(Integer id);
    int payByUpdate(Integer id);
    int receiveByUpdate(Integer id);
    int evaluationByObj(GoodEvaluationBO goodEvaluationBO);
    int updateOrderHashComment(int id);
    int selectGoodIdBySpecId(int id);
    int insertByAddOrder(AddOrderBO addOrderBO);
    int selectSpaceNum(int id);
    int updateSpaceNum(@Param("id") int id,@Param("num") int num);
    int selectOrderNum(int id);
    int selectOrderState(int id);
    int selectSpeceId(int id);
}
